package model

import (
	mssql "github.com/denisenkom/go-mssqldb"
	"time"
)

type ActivityCreate struct {
	ID        int       `gorm:"primary-key;column:id"` //社团申请记录编号
	Aid       int       `gorm:"not null;column:Aid"`   //申请人编号 (外键：uid）
	Uid       int       `gorm:"not null;column:Uid"`
	ApplyTime time.Time `gorm:"not null;column:ApplyTime"` //申请时间
	State     int       `gorm:"not null;column:State"`     //申请状态
	File      int       `gorm:"column:File"`
	Remark1   string    `gorm:"column:Remark1;"`
	Remark2   string    `gorm:"column:Remark2;"`
}

// 展示给管理员端
type CreateActivityApply struct {
	ID            int           `json:"id"`
	ApplyID       int           `json:"apply_id"`
	ApplyTime     time.Time     `json:"applyTime"`
	UID           int           `json:"uid"`
	UName         string        `json:"uname"`
	AID           int           `json:"aid"`
	AName         string        `json:"aname"`
	CID           int           `json:"cid"`
	CName         string        `json:"cname"`
	File          AllFile       `json:"file"`
	ApprovalState int           `json:"approval_state"`
	Place         string        `json:"place"`
	Campus        int           `json:"campus"`
	Type          int           `json:"type"`
	ApplyStime    time.Time     `json:"apply_stime"`
	ApplyEtime    time.Time     `json:"apply_etime"`
	Stime         time.Time     `json:"stime"`
	Etime         time.Time     `json:"etime"`
	Permit        int           `json:"permit"`
	Content       mssql.VarChar `json:"content"`
	Requirment    mssql.VarChar `json:"require"`
}
